<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
		<div class="container header">
		<div class="span5">
			<div class="logo">
				<a href="./网上商城/index.htm">
					<img src="${pageContext.request.contextPath}/image/logo1.jpg" alt="聚优商城"/>
				</a>
			</div>
		</div>
		<div class="span9">
	<div class="headerAd">
		<img src="${pageContext.request.contextPath}/image/header.jpg" width="320" height="50" alt="正品保障" title="正品保障"/>
	</div>	</div>
		<div class="span10 last">
			<div class="topNav clearfix">
				<ul>
				<s:if test="#session.user == null">
					<li id="headerLogin" class="headerLogin" style="display: list-item;">
						<a href="${pageContext.request.contextPath }/loginUI.action">登录</a>|
					</li>
					<li id="headerRegister" class="headerRegister" style="display: list-item;">
						<a href="${pageContext.request.contextPath }/registerPageAction.action">注册</a>|
					</li>
				</s:if>
				<s:else>
					<li id="headerLogin" class="headerLogin" style="display: list-item;">
						<s:property value="#session.user.name"/>
					|</li>
					<li id="headerLogin" class="headerOrder" style="display: list-item;">
						<a href="${pageContext.request.contextPath }/order_findByUid.action?pageNumber=1">我的订单</a>|
					</li>
					<li id="headerLogout" class="headerLogout" style="display: list-item;">
						<a href="${pageContext.request.contextPath }/logout.action">[退出]</a>|
					</li>
				</s:else>
							<li>
								<a>会员中心</a>
								|
							</li>
							<li>
								<a>购物指南</a>
								|
							</li>
							<li>
								<a>关于我们</a>
								
							</li>
				</ul>
			</div>
			<div class="cart">
				<a  href="${pageContext.request.contextPath }/cart_mycart.action">购物车</a>
			</div>
				<div class="phone">
					客服热线:
					<strong>96008/53277764</strong>
				</div>
		</div>
		<div class="span24">
			<ul class="mainNav">
						<li>
							<a href="${pageContext.request.contextPath }/index">首页</a>
							|
						</li>
					<s:iterator value="#session.cList" var="c">
						<li>
							<a href="${pageContext.request.contextPath}/product_findByCid?cid=<s:property value="#c.cid"/>&pageNumber=1"><s:property value="#c.cname"/></a>
							|
						</li>
					</s:iterator>
						
			</ul>
		</div>
	
	
	</div>	
</body>
</html>